package com.example.plusmaven;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@MapperScan("com.example.plusmaven.mapper")
//@ComponentScan(basePackages = {"com.example.plusmaven.mapper.UserMapper"})
@SpringBootApplication
@RestController
public class PlusmavenApplication {

    public static void main(String[] args)  throws Exception{
        try {
            SpringApplication.run(PlusmavenApplication.class, args);
        } catch (Exception ex) {
            System.out.println(ex.toString());
        }
    }
    //localhost:8080
    @RequestMapping("/")
    public String Welcome(){
        return "you are ok";
    }
}
